import React from 'react'
import { Table, Tag, Card, Button } from "antd"
import OaPagination from '@/components/OaPagination';
import { EditOutlined } from '@ant-design/icons';
import OaBreadcrumb from '@/components/OaBreadcrumb';



const columns = [
    {
        title: '标题',
        dataIndex: 'name',
        key: 'name'
    },
    {
        title: '发布者',
        dataIndex: 'age',
        key: 'age',
    },
    {
        title: '发布时间',
        dataIndex: 'address',
        key: 'address',
    },
    {
        title: '部门可见',
        dataIndex: 'address',
        key: 'address',
        render: (_, record) => (
            <Tag color="processing">公开</Tag>
        ),
    },

    {
        title: '操作',
        key: 'action',
        render: (_, record) => (
            <Button type="primary" icon={<EditOutlined />} />
        ),
    }
];

const data = [
    {
        key: '1',
        name: 'John Brown',
        age: 32,
        address: 'New York No. 1 Lake Park',
        tags: ['nice', 'developer'],
    },
    {
        key: '2',
        name: 'Jim Green',
        age: 42,
        address: 'London No. 1 Lake Park',
        tags: ['loser'],
    },
    {
        key: '3',
        name: 'Joe Black',
        age: 32,
        address: 'Sydney No. 1 Lake Park',
        tags: ['cool', 'teacher'],
    },
];

export default function ListInform() {
    return (
        <div>
            <OaBreadcrumb></OaBreadcrumb>
            <Card>
                <Table columns={columns} dataSource={data} pagination={false} bordered />
                <OaPagination></OaPagination>
            </Card>
        </div>
    )
}
